
#include "uart_helper.h"

AR8030_API char* uart_list_get_names(uart_list_hd* phd, int index)
{
    if (index < phd->num) {
        int offset = 0;
        for (int i = 0; i < index; i++) {
            int len = phd->uart_dev_name[offset];
            offset += (len + 1);
        }
        return phd->uart_dev_name + offset + 1;
    }
    return "";
}
